<template>
  <div class="toast" v-if="visible">
    <div>{{message}}</div>
  </div>
</template>

<script>
  export default {
    name: 'Toast',
    data() {
      return {
        message: '',
        visible: false,
      }
    }
  }
</script>

<style scoped>
  .toast {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    padding: 12px 15px;
    border-radius: 15px;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    width: 65%;
    text-align: center;
  }
</style>